var { URL } = require('whatwg-url')

console.log(new URL('https://example.com/path?query'))
